
import Vue from 'vue'
import VueRouter from 'vue-router'
import homeRouter from './home'
import orderRouter from './order'
import centerRouter from './center'
import loginRouter from './login'
import shopRouter from './shop'
import NotFound from '@/views/NotFound/notfound.vue'
import merchantlist from './mlist'
import searchRouter from './serach'
import hongbaoRouter from './hongbao'
import addressRouter from './addresslist'
import addlocationRouter from './addresslist/addlocation'
import regRouter from './reg/reg'
Vue.use(VueRouter)
const routes = [
  homeRouter,
  orderRouter,
  centerRouter,
  loginRouter,
  shopRouter,
  merchantlist,
  searchRouter,
  hongbaoRouter,
  addressRouter,
  addlocationRouter,
  regRouter,
  {
    path: '/',
    redirect:  '/home'
  },
  {
    path: '*',
    component:  NotFound
  },
]

const router = new VueRouter({
  routes
})

export default router
